package com.jswlw.service.biz.impl;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.jswlw.dao.biz.ImeiIcCidMapper;
import com.jswlw.entity.biz.ImeiIcCid;
import com.jswlw.service.biz.ImeiIcCidService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 吴维斌 E-mail:wuweibin0817@163.com
 * @version 创建时间：${date} ${time}
 */
@Service
public class ImeiIcCidServiceImpl implements ImeiIcCidService {
    @Autowired
    ImeiIcCidMapper mapper;

    @Override
    public void add(ImeiIcCid imeiIcCid) {
        mapper.insert(imeiIcCid);
    }

    @Override
    public Page<ImeiIcCid> queryPage(ImeiIcCid imeiIcCid) {
        PageHelper.startPage(imeiIcCid.getOffset(), imeiIcCid.getLimit());
        return (Page<ImeiIcCid>) mapper.queryList(imeiIcCid);
    }

    @Override
    public List<ImeiIcCid> queryList(ImeiIcCid imeiIcCid) {
        return mapper.queryList(imeiIcCid);
    }
}
